package fei.zhou.lambdalearn.demo1;

/**
 * 描述该类- JPA
 *
 * @author zhoufei
 * @class: Toshow
 * @date 2020/12/22 20:49
 * @Verson 1.0 -2020/12/22 20:49
 * @see
 */
public class Demo3 {
    
    public static void main(String[] args) {
        method(
                (userName, doSomething) -> {
            return (userName + doSomething);
        });
    }
    
    public static void method(Toshow toshow) {
        String message = toshow.toSee("小明", "吃冰棒。");
        System.out.println("message：" + message);
    }
    
    interface Toshow {
        String toSee(String userName, String doSomething);
    }
}